Skip to content

The server can push its metrics to Prometheus over OTLP/HTTP (upstream #1540) - #127

Merged
gedaiu merged 2 commits into
re-devfrom
carry/otlp-http
Nov 30, 2026
Merged

gedaiu merged 2 commits into
re-devfrom
carry/otlp-http

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 30, 2026

Copy link
Copy Markdown

Lets the server push its metrics straight into the internal cluster's Prometheus. Two commits are cherry-picked from upstream deeplethe#1540, which is still in review:

  • The OTel layer has its own filter, info unless UTOPIA_OTEL_FILTER says otherwise, so utopia=debug spans stay in the log instead of being exported.
  • OTEL_EXPORTER_OTLP_PROTOCOL picks the transport (http/protobuf by default, or grpc), and OTEL_TRACES_EXPORTER=none keeps metrics only. Prometheus's OTLP receiver takes HTTP and no traces.

Checked end to end against a local Prometheus 3.5 with --web.enable-otlp-receiver: with a queued job, utopia_jobs_queue_size and utopia_jobs_queue_oldest_wait_seconds arrived, labelled job="utopia-server", kb, lane and status, and the server logged no export errors.

Nothing changes until the deploy values set the endpoint. That comes in a follow-up after the release, together with an egress rule to Prometheus, and it needs re-cinq/infrastructure#79 merged first.

…s otherwise (deeplethe#1539)

utopia=debug stays a stdout setting: the global EnvFilter now applies to the
fmt layer only, so debug spans are no longer exported. One exporter test per
metric is kept.

(cherry picked from commit ec4af2b)
…TER=none keeps metrics only (deeplethe#1539)

http/protobuf is the default, as the OTel spec asks, and grpc stays one
variable away. Prometheus's own OTLP receiver takes HTTP and no traces, so
both are needed to push metrics straight to it.

(cherry picked from commit 620458e)
@lore-agent

lore-agent Bot commented Nov 30, 2026

Copy link
Copy Markdown

Lore is reviewing this PR — ec3f606c-6c85-45ce-834f-9996b4a7f3a5.

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

@lore-agent lore-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lore review — Approved

Clean carry of the upstream OTLP/HTTP transport, OTEL_TRACES_EXPORTER=none support, and per-layer UTOPIA_OTEL_FILTER commits onto re-dev.

Must fix (0) · Consider (0) · Nits (0)

Reviewed by gemini-4-argon

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

Posted by floor, visit 9e866bca-e03e-4e55-bd05-cf4ef38101db.

@gedaiu
gedaiu merged commit 27416e3 into re-dev Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant